import {InjectionToken, NgModule} from '@angular/core';
import {httpInterceptorProvidess} from './interceptors';
import {environment} from '../../environments/environment';

export const API_CONFIG = new InjectionToken<string>('ApiConfigToken');

@NgModule({
  declarations: [],
  imports: [],
  providers: [
    {provide: API_CONFIG, useValue: environment.production ? 'spis/' : '/'},
    httpInterceptorProvidess
  ]
})
export class ServicesModule {
}
